/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sge.UI;

import java.awt.Component;
import javax.swing.JOptionPane;

/**
 *
 * @author victor
 */
public final class Dialogo {
    
    public static void error(Component padre, String msg){
        JOptionPane.showMessageDialog(padre, msg, "Error", 
                JOptionPane.ERROR_MESSAGE);
    }
    
    
    public static void informacion(Component padre, String msg){
        JOptionPane.showMessageDialog(padre, msg, "Información", 
                JOptionPane.INFORMATION_MESSAGE);
    }
    
    public static void advertencia(Component padre, String msg){
        JOptionPane.showMessageDialog(padre, msg, "Advertencia", 
                JOptionPane.WARNING_MESSAGE);
    }
    
    public static int confirmacionSNC(Component padre, String msg){
        return JOptionPane.showConfirmDialog(padre, msg, "Confirmación", 
                JOptionPane.YES_NO_CANCEL_OPTION);
    }
    
    public static int confirmacionSN(Component padre, String msg){
        return JOptionPane.showConfirmDialog(padre, msg, "Confirmación", 
                JOptionPane.YES_NO_OPTION);
    }
    
}
